package com.zb.sinocare.detection.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zb.sinocare.common.domain.Patient;
import com.zb.sinocare.common.domain.vo.PatientVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PatientMapper extends BaseMapper<Patient> {

    List<Patient> query(Page page, @Param("search") PatientVo search);

    int addPatient(Patient patient);

    int deletePatientById(Integer patientId);

}